/** 
 * Project Name:eleme-website 
 * File Name:BussinessServiceImpl.java 
 * Package Name:com.eleme.service.impl 
 * Date:2017年12月31日上午10:31:37 
 * Copyright (c) 2017, fakedesigner@163.com All Rights Reserved. 
 * 
*/  
  
package com.eleme.service.impl;

import com.eleme.dao.IBussinessDao;
import com.eleme.dao.IDaoFactory;
import com.eleme.entity.Bussiness;
import com.eleme.service.IBussinessService;
import com.google.gson.GsonBuilder;

/** 
 * ClassName:BussinessServiceImpl <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2017年12月31日 上午10:31:37 <br/> 
 * @author   Vane 
 * @version   
 * @since    JDK 1.8 
 * @see       
 */
public class BussinessServiceImpl extends BaseServiceImpl<Bussiness> implements IBussinessService{

	private IBussinessDao dao;
	
	public BussinessServiceImpl(IDaoFactory factory) {
		super(factory.getShopBussDao());
		dao = (IBussinessDao) super.getDao();
	}
	
	public String getBussJSON(int bussiness) {
		
		return new GsonBuilder().create().toJson(dao.getShopBuss(bussiness));
	}
}
